package cc.mrbird.implementation.domain;

import cc.mrbird.common.annotation.ExportConfig;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name="training_implementation")
public class TrainingImplementation implements Serializable {
    /**
     * 包括单位ID、单位名称、计划时间、实际培训时间、培训内容、培训单位、培训人数、培训现场照片上传等。
     */
    private static final long serialVersionUID = 7780821232635888825L;
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "unit_id")
    private Integer unit_id;

    @Column(name = "unit_name")
    @ExportConfig(value = "单位名称")
    private String unit_name;

    @Column(name = "plan_time")
    @ExportConfig(value = "计划时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date plan_time;

    @Column(name = "training_time")
    @ExportConfig(value = "实际培训时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date training_time;

    @Column(name = "training_content")
    @ExportConfig(value = "培训内容")
    private String training_content;

    @Column(name = "training_unit")
    @ExportConfig(value = "培训单位")
    private String training_unit;

    @Column(name = "training_number")
    @ExportConfig(value = "培训人数")
    private Integer training_number;

    @Column(name = "training_scenephoto")
    @ExportConfig(value = "培训现场照片")
    private String training_scenephoto;

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public String getUnit_name() {
        return unit_name;
    }

    public void setUnit_name(String unit_name) {
        this.unit_name = unit_name;
    }

    public Date getPlan_time() {
        return plan_time;
    }

    public void setPlan_time(Date plan_time) {
        this.plan_time = plan_time;
    }

    public Date getTraining_time() {
        return training_time;
    }

    public void setTraining_time(Date training_time) {
        this.training_time = training_time;
    }

    public String getTraining_content() {
        return training_content;
    }

    public void setTraining_content(String training_content) {
        this.training_content = training_content;
    }

    public String getTraining_unit() {
        return training_unit;
    }

    public void setTraining_unit(String training_unit) {
        this.training_unit = training_unit;
    }

    public Integer getTraining_number() {
        return training_number;
    }

    public void setTraining_number(Integer training_number) {
        this.training_number = training_number;
    }

    public String getTraining_scenephoto() {
        return training_scenephoto;
    }

    public void setTraining_scenephoto(String training_scenephoto) {
        this.training_scenephoto = training_scenephoto;
    }
    @Override
    public String toString() {
        return "TrainingImplementation{" +
                "unit_id=" + unit_id +
                ", unit_name='" + unit_name + '\'' +
                ", plan_time=" + plan_time +
                ", training_time=" + training_time +
                ", training_content='" + training_content + '\'' +
                ", training_unit='" + training_unit + '\'' +
                ", training_number=" + training_number +
                ", training_scenephoto='" + training_scenephoto + '\'' +
                '}';
    }
}
